<!--[if !IE]> -->
<object type="application/x-shockwave-flash" data="<?php echo URL::base_url() . 'public/obj/picdropslogo.swf' ?>" width="100%" height="80">
    <!-- <![endif]-->
    <!--[if IE]>
				  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="80">
            <param name="movie" value="..\res\PicDropsLogo.swf" />
				<!--><!-- http://Validifier.com -->
</object>
<!-- <![endif]-->

<ul class="navigation">
    <!-- HOME -->
    <li><a href="<?php echo URL::site('home'); ?>">Home</a></li>

    <!-- PROFILE -->
    <?php if($main_link['profile']) : ?>
    <li><a href="<?php echo URL::site('profile'); ?>">Profile</a></li>
    <?php endif;?>

    <!-- REGISTER -->
    <?php if($main_link['register']) : ?>
    <li><a href="<?php echo URL::site('register'); ?>">Register</a></li>
    <?php endif;?>

    <!-- LOGIN -->
    <?php if($main_link['login']) : ?>
    <li>
        <a href="" onclick="toggleVisibility(document.getElementById('login_form')); return false;">Login</a>
        <div id="login_form" style="display: none">
            <form method="post" action="<?php echo URL::site('user/login'); ?>">
                <input name="username" type="text" />
                <input name="password" type="password" />
                <input class="submit" type="submit" value="login"/>
            </form>
        </div>
    </li>
    <?php endif;?>

    <!-- LOGOUT -->
    <?php if($main_link['logout']) : ?>
    <li><a href="<?php echo URL::site('user/logout'); ?>">Logout</a></li>
    <?php endif;?>

    <!-- Search -->
    <li class="search">
        <form action="<?php echo URL::site("search") ?>" method="post">
            <input type="text" name="query"/>
            <input type="submit" value="search!"/>
        </form>
    </li>
</ul>